<%--
  Created by IntelliJ IDEA.
  User: HeWL
  Date: 2020/11/25
  Time: 0:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" import="java.util.*" language="java" %>
<!-- 登录成功后的页面 -->
<%
    //小脚本:session验证
    Object uname = session.getAttribute("uname");
    if (uname == null) {
        //重定向到login.jsp
        response.sendRedirect("login.jsp");
        return;
    }
%>
<html>
<head>
</head>
<body>
<h1>欢迎登录:<%=uname.toString() %>
</h1>
<a href="logout.do" rel="external nofollow">退出</a>
</body>
</html>
